import http from "@/utils/http";
import {EnumAlias} from "@/utils/common";
//获取会员数量，本月新增会员数量
export function homeGetMemberCount(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/home/getMemberCount`,
    method: "get",
    params
  });
}
//获取订单总数,总金额，近七天订单数量。
export function homeGetOrderCount(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/home/getOrderCount`,
    method: "get",
    params
  });
}
//获取当月成交客户数、成交数量
export function homeGetGetMakeBargain(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/home/getGetMakeBargain`,
    method: "get",
    params
  });
}
//获取某月成交额
export function homeGetMakeBargain(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/home/getMakeBargain`,
    method: "get",
    params
  });
}
//获取某月订单数
export function homeGetMonethOrder(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/home/getMonethOrder`,
    method: "get",
    params
  });
}
//获取本年成交额
export function homeGetYearCount(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/home/getYearCount`,
    method: "get",
    params
  });
}
//获取当月成交额TOP10
export function homeGetMonethTopTenDto(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/home/getMonethTopTenDto`,
    method: "get",
    params
  });
}
//商品销量TOP4
export function homeGetProductTopDto(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/home/getProductTopDto`,
    method: "get",
    params
  });
}
